#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START texinfo
# depends: ncurses
# depends: libzio
# depends: libzio-native

reset_mtime texinfo texinfo/doc/stamp-1
mkdir -p build/texinfo
cd build/texinfo
env \
	PERL=/usr/bin/perl \
	CC="${TARGET}-gcc" \
	BUILD_CC=gcc \
	BUILD_CFLAGS="-O2 -g" \
	BUILD_CPPFLAGS="-I${xtools}${build_prefix}/include" \
	BUILD_LDFLAGS="-L${xtools}${build_prefix}/lib" \
../../texinfo/configure \
	${CONFIGURE_ARGS} \
	--disable-perl-xs \
	--disable-tp-tests \
	--disable-perl-api-texi-build \
	--disable-pod-simple-texinfo-tests \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/texinfo

# RECIPE END texinfo
